using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace ProjectCastamere
{
    class MainMenu : Menu
    {
        public MainMenu(Application app)
            : base(app)
        {
            AddOption("New Game", false);
            AddOption("Load Game", true);
            AddOption("High Scores", false);
            AddOption("Settings", false);
            AddOption("Quit", true);
        }

        public override void OptionSelected(string option)
        {
            if (option == "New Game")
            {
                // NOTE: for testing purposes only

                application.PushState(new GameSession(application, "testLevel", null));
            }
            if (option == "Load Game")
            {
                application.PushState(new LoadMenu(application));
            }
            else if (option == "Quit")
            {
                application.Exit();
            }
        }
    }
}
